package com.canvas.repository;

import com.canvas.pojo.Role;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 角色数据
 * @Author: 宗恣
 * @Date: 2018/8/31 0031 16:21
 */
public interface RoleRepository extends JpaRepository<Role, Long> {

    List<Role> findRoleByUserId(Long userId);

}
